package business;

import java.util.LinkedList;

public abstract class AbstractDocument
{

    /* ??? */
    protected LinkedList<User> usuarios;

    /* Basic Attributes */
    protected String title, source;

    /* Constructors */
    public AbstractDocument(String src)
    {
        this.source = src;
    }

    /* Checking Method */
    public boolean checkTitle(String title)
    {
        return title.matches("[a-zA-Z]+[.][a-z]+");
    }

    /* Getters and Setters */
    public String getTitle()
    {
        return title;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getSource()
    {
        return source;
    }
    
    public void setSource(String src)
    {
        this.source = source;
    }
}
